home *** CD-ROM | disk | FTP | other *** search
/ Surfin' Sam - A Hilariously Interactive Game / Surfin Sam.iso / pc / sam_232.dir / 00925.ls < prev    next >
Encoding:
Text File  |  1995-07-17  |  1.6 KB  |  67 lines

  1. on enterFrame
  2.   global mylist, score
  3.   cursor(-1)
  4.   sound stop 1
  5.   sound stop 2
  6.   set the sound of cast 908 to 1
  7.   puppetSprite(48, 1)
  8.   puppetSprite(2, 0)
  9.   puppetSprite(7, 0)
  10.   puppetSprite(11, 0)
  11.   puppetSprite(37, 0)
  12.   set the visible of sprite 9 to 1
  13.   set the visible of sprite 5 to 1
  14.   set the visible of sprite 6 to 1
  15.   set the visible of sprite 8 to 0
  16.   set the visible of sprite 12 to 0
  17.   set the visible of sprite 13 to 0
  18.   set the visible of sprite 14 to 0
  19.   set the visible of sprite 16 to 0
  20.   if rollOver(17) then
  21.     set the visible of sprite 8 to 1
  22.   end if
  23.   if rollOver(18) then
  24.     set the visible of sprite 12 to 1
  25.   end if
  26.   if rollOver(19) then
  27.     set the visible of sprite 13 to 1
  28.   end if
  29.   if rollOver(20) then
  30.     set the visible of sprite 14 to 1
  31.   end if
  32.   if rollOver(21) then
  33.     set the visible of sprite 16 to 1
  34.   end if
  35.   if the movieTime of sprite 9 = the duration of cast 908 then
  36.     scorefind()
  37.     score()
  38.     if score = 3 then
  39.       if the machineType = 256 then
  40.         puppetPalette(0)
  41.       end if
  42.       puppetTransition(28, 1, 10)
  43.       puppetSprite(48, 0)
  44.       set the visible of sprite 48 to 0
  45.       unLoad("tf", "tfg")
  46.       go("end")
  47.       if the machineType = 256 then
  48.         puppetPalette("endpal")
  49.       end if
  50.     else
  51.       puppetSound("win")
  52.       updateStage()
  53.       puppetTransition(52, 1, 120, 1)
  54.       set the visible of sprite 3 to 1
  55.       set the visible of sprite 2 to 1
  56.       set the visible of sprite 23 to 1
  57.       set the visible of sprite 24 to 1
  58.       unLoad("tf", "tfg")
  59.       go("berry")
  60.     end if
  61.   end if
  62. end
  63.  
  64. on exitFrame
  65.   go(the frame)
  66. end
  67.